package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/10/7 0007
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("工单模块字段对象")
public class WorkModuleFieldVo {

    @ApiModelProperty(value = "模块字段ID，新增不必传，修改必传")
    private Long id;

    @NotNull(message = "工单字段ID不能为空")
    @ApiModelProperty(value = "工单字段ID", required = true)
    private Long workFieldId;

    @NotNull(message = "字段是否必填项不能为空")
    @ApiModelProperty(value = "是否必填：false-不必填，true-必填", required = true, example = "true")
    private Boolean required;

    @NotNull(message = "字段是否移动端显示项不能为空")
    @ApiModelProperty(value = "是否移动端显示:false-不显示，true-显示", required = true, example = "false")
    private Boolean mobileShow;

    @NotNull(message = "字段是否列表条件项不能为空")
    @ApiModelProperty(value = "是否列表条件：true-不作为列表查询条件，true-作为列表查询条件", required = true, example = "false")
    private Boolean listSelect;

    @NotNull(message = "字段是否列表显示项不能为空")
    @ApiModelProperty(value = "是否列表显示:false-不在列表标题显示，作为列表标题显示-是", required = true, example = "false")
    private Boolean listShow;

}
